'use strict';

const RouterService = require('../base');

class UserCouponService extends RouterService {
  static get modelName() {
    return 'Business.UserCoupon';
  }
  getPageInclude() {
    return [
      {
        model: this.app.model.Business.Coupon,
        as: 'coupon',
      },
      {
        model: this.app.model.Business.User,
        as: 'user',
      },
      {
        model: this.app.model.Business.Order,
        as: 'order',
      }
    ]
  }

  getListInclude() {
    return [
      {
        model: this.app.model.Business.Coupon,
        as: 'coupon',
      }
    ]
  }
}

module.exports = UserCouponService;
